/**
 * Created by yongwang on 2015/6/1.
 */
 (function (w) {
    var params = {},data,getData;
    if (window.location.pathname) {
        var parts = location.search.substring(1).split('&');
        for (var i = 0; i < parts.length; i++) {
            var nv = parts[i].split('=');
            if (!nv[0]) continue;
            params[nv[0]] = nv[1] || true;
        }
    }
    data = {"url":"/rest/v1.0/mobile/web/getAppUserShare/"+params["fromUserId"]};//
    getData = function(res){
            var res = eval( "(" + res + ")" );
            $("#community_name").text(res.data.communityName);
            $("#invitation_portrait").attr("src",res.data.images);
            $("#invitation_name").text(res.data.nickName);
            $("#invite_num").text(res.data.invitationCode);
    }
    netWork(data,getData);
})(window);         
//     url: "http://t.weixin.66xqshop.com/invite/toAuth4Invite.do?fromUserId="+params.fromUserId+"&inviteCode="+params.inviteCode, async: true,
